import Vue from 'vue'
import Router from 'vue-router'
import Index from "./components/Index"
import Accounts from "./views/Index/accounts"
import AllManage from "./views/Index/allManage"
import Book from "./views/Index/book"
import CarManage from "./views/Index/carManage"
import Chart from "./views/Index/chart"
import Check from "./views/Index/check"
import FinanceManage from "./views/Index/financeManage"
import InoutManage from "./views/Index/inoutManage"
import SaleManage from "./views/Index/saleManage"
import Sell from "./views/Index/sell"
import Service from "./views/Index/service"
import Statement from "./views/Index/statement"
import Baoban from "./views/service/baoban"
import BanCiPlan from "./views/service/banCiPlan"
import BanCiSetting from "./views/service/banCiSetting"
import PaiBanPlan from "./views/service/paiBanPlan"
import PriceChange from "./views/service/priceChange"
import GongshiPrice from "./views/service/gongshiPrice"
import Custom from "./views/service/custom"
import ChangeList from "./views/service/changeList"
import Unit from "./views/service/unit"
import CarList from "./views/service/carList"
import DriverList from "./views/service/driverList"
import XzPlace from "./views/service/xzPlace"
import RoadManage from "./views/service/roadManage"
import ZdManage from "./views/service/zdManage"
import SeatLayout from "./views/service/seatLayout"
import Keche from "./views/service/keche"
import TicketManage from "./views/service/ticketManage"
import CharterManage from "./views/allManage/charaterManage"
import CusDate from "./views/allManage/cusDate"
import DataSync from "./views/allManage/dataSync"
import OperLog from "./views/allManage/operLog"
import OrgManage from "./views/allManage/orgManage"
import OsManage from "./views/allManage/osManage"
import OsWork from "./views/allManage/osWork"
import PrintManage from "./views/allManage/printManage"
import ResourManage from "./views/allManage/resourManage"
import SalesManage from "./views/allManage/salesManage"
import UserGroupManage from "./views/allManage/userGroupManage"
import UserManage from "./views/allManage/userManage"
import TicketKu from "./views/financeManage/ticketKu"
import TicketGet from "./views/financeManage/ticketGet"
import TicketGetCheck from "./views/financeManage/ticketGetCheck"
import PayUntime from "./views/financeManage/payUntime"
import ListPay from "./views/financeManage/listPay"
import ListCheck from "./views/financeManage/listCheck"
import AccountCom from "./views/financeManage/accountCom"
import AccountNum from "./views/financeManage/accountNum"
import AccountFun from "./views/financeManage/accountFun"
import AccountSum from "./views/financeManage/accountSum"
import AccountCheck from "./views/financeManage/accountCheck"
import DiscountType from "./views/financeManage/discountType"
import DiscountKu from "./views/financeManage/discountKu"
import DiscountOut from "./views/financeManage/discountOut"
import TicketNumKu from "./views/financeManage/ticketNumKu"

import TicketTest from "./views/inAndoutaManage/ticketTest"
import GetInLogin from "./views/inAndoutaManage/getInLogin"
import GetInSearch from "./views/inAndoutaManage/getInSearch"
import OutboundLogin from "./views/inAndoutaManage/outboundLogin"
import OutboundSearch from "./views/inAndoutaManage/outboundSearch"
import SafeLogin from "./views/inAndoutaManage/safeLogin"
import SafeSearch from "./views/inAndoutaManage/safeSearch"

import Login from "./views/login/login"

import ChangeRecord from "./views/check/changeRecord"
import ClassRecord from "./views/check/classRecord"
import LineTicketing from "./views/check/lineTicketing"
import MobilePayment from "./views/check/mobilePayment"
import NetBookingEnquiry from "./views/check/netBookingEnquiry"
import OutTicketingDetail from "./views/check/outTicketingDetail"
import PreBookingEnquiry from "./views/check/preBookingEnquiry"
import RecordEnquiry from "./views/check/recordEnquiry"
import ScheduleEnquiry from "./views/check/scheduleEnquiry"
import SpecialRecord from "./views/check/specialRecord"
import SummarySheet from "./views/check/summarySheet"
import TichetingNote from "./views/check/tichetingNote"
import TicketingDetail from "./views/check/ticketingDetail"
import RefundTicketInquiries from "./views/check/refundTicketInquiries"

import Fenxiaoimpower from "./views/fenxiaoguanli/fenxiaoimpower"
import Jigoumanagement from "./views/fenxiaoguanli/jigoumanagement"


import VehicleSchedul from "./views/carManage/vehicleSchedul"
import DriverSchedul from "./views/carManage/driverSchedul"

import  BanCiPalyReport from "./views/Report/BanCiPalyReport"
import  FaBanReport from  "./views/Report/FaBanReport"
import  OutStationNoteReport from "./views/Report/OutStationNoteReport"
import  SpecialNoteReport from "./views/Report/SpecialNoteReport"
import  StopBanReport from  "./views/Report/StopBanReport"
import  UserFaBanSumReport from "./views/Report/UserFaBanSumReport"
import  WeiFuTongRefundReport from "./views/Report/WeiFuTongRefundReport"
import  WeiFuTongPayReport from  "./views/Report/WeiFuTongPayReport"
import  MobilePayDaySumReport from "./views/Report/MobilePayDaySumReport"
import  MobilePayDuiZhang from "./views/Report/MobilePayDuiZhang"
import  MobilePayNoteReport from  "./views/Report/MobilePayNoteReport"

import  CarFaBanReport from "./views/groupManage/CarFaBanReport"
import  DanWeiLineReport from "./views/groupManage/DanWeiLineReport"
import  SellerYingShouReport from "./views/groupManage/SellerYingShouReport"
import  TicketRunReport from "./views/groupManage/TicketRunReport"
import  LineFaBanDayReport from "./views/groupManage/LineFaBanDayReport"
import  LineFanBanReport from "./views/groupManage/LineFanBanReport"
import  LineFanBanSumReport from "./views/groupManage/LineFanBanSumReport"
import  LineTicketReport from "./views/groupManage/LineTicketReport"
import  ZhanChangLineReport from "./views/groupManage/ZhanChangLineReport"
import  StationCheckReport from "./views/groupManage/StationCheckReport"
import  StationTicketReport from "./views/groupManage/StationTicketReport"

import InsuranceSum from "./views/Report/insuranceSum"
import InsuranceDetails from "./views/Report/insuranceDetails"
import BookDetails from "./views/Report/bookDetails"
import DelectTicketDetails from "./views/Report/delectTicketDetails"
import InnerStationbookDetails from "./views/Report/innerStationbookDetails"
import LeakGetCheckDetails from "./views/Report/leakGetCheckDetails"
import NetBookSellDetails from "./views/Report/netBookSellDetails"
import NetBookSellSum from "./views/Report/netBookSellSum"
import NetRefundDetails from "./views/Report/netRefundDetails"
import OuterStationSellSun from "./views/Report/outerStationSellSun"
import RoadSell from "./views/Report/roadSell"
import SellSum from "./views/Report/sellSum"
import SellSumDetails from "./views/Report/sellSumDetails"
import SellSumStatistical from "./views/Report/sellSumStatistical"
import StationSell from "./views/Report/stationSell"
import TicketChangingDetails from "./views/Report/ticketChangingDetails"
import RefundDetails from "./views/Report/refundDetails"
import CouponsUsed from "./views/Report/couponsUsed"
import CouponsSell from "./views/Report/couponsSell"
import PeopleRiding from "./views/Report/peopleRiding"

// import Table from "./components/common/tableData"
// import Form from "./components/common/form"


Vue.use(Router)

export default new Router({
  mode: 'history',
  // base: "服务器文件夹路径",
  routes: [
    {
      path: '/',
      redirect: "Login"
    },
    {
      path: '/login',
      component: Login
    },
    {
      path: '/index',
      component: Index,
      children:[
        {path:"/index/",redirect:"Service"},
        // 售票模块
        {path:"/index/sell",component:Sell},
        //营运调度模块
        {path:"/index/service",component:Service,children:[
          {path:"/index/service/",component:Baoban},
          {path:"/index/service/baoBan",component:Baoban},
          {path:"/index/service/banCiPlan",component:BanCiPlan},
          {path:"/index/service/banCiSetting",component:BanCiSetting},
          {path:"/index/service/paiBanPlan",component:PaiBanPlan},
          {path:"/index/service/priceChange",component:PriceChange},
          {path:"/index/service/gongshiPrice",component:GongshiPrice},
          {path:"/index/service/custom",component:Custom},
          {path:"/index/service/changeList",component:ChangeList},
          {path:"/index/service/unit",component:Unit},
          {path:"/index/service/carList",component:CarList},
          {path:"/index/service/driverList",component:DriverList},
          {path:"/index/service/xzPlace",component:XzPlace},
          {path:"/index/service/roadManage",component:RoadManage},
          {path:"/index/service/zdManage",component:ZdManage},
          {path:"/index/service/seatLayout",component:SeatLayout},
          {path:"/index/service/keche",component:Keche},
          {path:"/index/service/ticketManage",component:TicketManage}
        ]},
        // 验票结算模块
        {path:"/index/accounts",component:Accounts},
        // 财务管理模块
        {path:"/index/financeManage",component:FinanceManage,children:[
          {path:"/index/financeManage",component:TicketKu},
          {path:"/index/financeManage/ticketKu",component:TicketKu},
          {path:"/index/financeManage/ticketGet",component:TicketGet},
          {path:"/index/financeManage/ticketGetCheck",component:TicketGetCheck},
          {path:"/index/financeManage/payUntime",component:PayUntime},
          {path:"/index/financeManage/listPay",component:ListPay},
          {path:"/index/financeManage/listCheck",component:ListCheck},
          {path:"/index/financeManage/accountCom",component:AccountCom},
          {path:"/index/financeManage/accountNum",component:AccountNum},
          {path:"/index/financeManage/accountFun",component:AccountFun},
          {path:"/index/financeManage/accountSum",component:AccountSum},
          {path:"/index/financeManage/accountCheck",component:AccountCheck},
          {path:"/index/financeManage/discountType",component:DiscountType},
          {path:"/index/financeManage/discountKu",component:DiscountKu},
          {path:"/index/financeManage/discountOut",component:DiscountOut},
          {path:"/index/financeManage/ticketNumKu",component:TicketNumKu},
        ]},
        {path:"/index/inoutManage",component:InoutManage,children:[
          {path:"/index/InoutManage/",component:TicketTest},
          {path:"/index/inAndoutaManage/ticketTest",component:TicketTest},
          {path:"/index/inAndoutaManage/getInLogin",component:GetInLogin},
          {path:"/index/inAndoutaManage/getInSearch",component:GetInSearch},
          {path:"/index/inAndoutaManage/outboundLogin",component:OutboundLogin},
          {path:"/index/inAndoutaManage/outboundSearch",component:OutboundSearch},
          {path:"/index/inAndoutaManage/safeLogin",component:SafeLogin},
          {path:"/index/inAndoutaManage/safeSearch",component:SafeSearch}
        ]},
        // 订票模块
        {path:"/index/book",component:Book},
        // 综合查询模块
        {
          path: "/index/check", component: Check, children: [
          {path: "/index/check", component: TicketingDetail},
          {path: "/index/check/ticketingDetail", component: TicketingDetail},
          {path: "/index/check/tichetingNote", component: TichetingNote},
          {path: "/index/check/summarySheet", component: SummarySheet},
          {path: "/index/check/specialRecord", component: SpecialRecord},
          {path: "/index/check/scheduleEnquiry", component: ScheduleEnquiry},
          {path: "/index/check/recordEnquiry", component: RecordEnquiry},
          {path: "/index/check/preBookingEnquiry", component: PreBookingEnquiry},
          {path: "/index/check/outTicketingDetail", component: OutTicketingDetail},
          {path: "/index/check/netBookingEnquiry", component: NetBookingEnquiry},
          {path: "/index/check/mobilePayment", component: MobilePayment},
          {path: "/index/check/lineTicketing", component: LineTicketing},
          {path: "/index/check/classRecord", component: ClassRecord},
          {path: "/index/check/changeRecord", component: ChangeRecord},
          {path: "/index/check/refundTicketInquiries", component: RefundTicketInquiries},
      ]
      },
        // 报表中心模块
         {path:"/index/statement",component:Statement,children:[
                 {path: "/index/statement", component: InsuranceSum},
                 {path: "/index/statement/insuranceSum", component: InsuranceSum},
                 {path: "/index/statement/insuranceDetails", component: InsuranceDetails},
                 {path: "/index/statement/delectTicketDetails", component: DelectTicketDetails},
                 {path: "/index/statement/ticketChangingDetails", component: TicketChangingDetails},
                 {path: "/index/statement/netBookSellDetails", component: NetBookSellDetails},
                 {path: "/index/statement/netBookSellSum", component: NetBookSellSum},
                 {path: "/index/statement/netRefundDetails", component: NetRefundDetails},
                 {path: "/index/statement/leakGetCheckDetails", component: LeakGetCheckDetails},
                 {path: "/index/statement/sellSum", component: SellSum},
                 {path: "/index/statement/sellSumStatistical", component: SellSumStatistical},
                 {path: "/index/statement/sellSumDetails", component: SellSumDetails},
                 {path: "/index/statement/refundDetails", component: RefundDetails},
                 {path: "/index/statement/outerStationSellSun", component: OuterStationSellSun},
                 {path: "/index/statement/roadSell", component: RoadSell},
                 {path: "/index/statement/bookDetails", component: BookDetails},
                 {path: "/index/statement/stationSell", component: StationSell},
                 {path: "/index/statement/innerStationbookDetails", component: InnerStationbookDetails},
                 {path: "/index/statement/couponsUsed", component: CouponsUsed},
                 {path: "/index/statement/couponsSell", component: CouponsSell},
                 {path: "/index/statement/peopleRiding", component: PeopleRiding},


                 {path: "/index/statement/BanCiPalyReport", component: BanCiPalyReport },
                 {path: "/index/statement/FaBanReport", component: FaBanReport },
                 {path: "/index/statement/OutStationNoteReport", component: OutStationNoteReport },
                 {path: "/index/statement/SpecialNoteReport", component: SpecialNoteReport },
                 {path: "/index/statement/StopBanReport", component: StopBanReport },
                 {path: "/index/statement/UserFaBanSumReport", component: UserFaBanSumReport },
 
                 {path: "/index/statement/WeiFuTongRefundReport", component: WeiFuTongRefundReport },
                 {path: "/index/statement/WeiFuTongPayReport", component: WeiFuTongPayReport },
                 {path: "/index/statement/MobilePayDaySumReport", component: MobilePayDaySumReport },
                 {path: "/index/statement/MobilePayDuiZhang", component: MobilePayDuiZhang },
                 {path: "/index/statement/MobilePayNoteReport", component: MobilePayNoteReport },
 

             ]},
        // 分析图表模块
        {path:"/index/chart",component:Chart,children: [
                {path: "/index/chart", component: SellerYingShouReport},
                {path: "/index/chart/CarFaBanReport", component: CarFaBanReport },
                {path: "/index/chart/DanWeiLineReport", component: DanWeiLineReport },
                {path: "/index/chart/SellerYingShouReport", component: SellerYingShouReport },
                {path: "/index/chart/TicketRunReport", component: TicketRunReport },
                {path: "/index/chart/LineFaBanDayReport", component: LineFaBanDayReport },
                {path: "/index/chart/LineFanBanReport", component: LineFanBanReport },
                {path: "/index/chart/LineFanBanSumReport", component: LineFanBanSumReport },
                {path: "/index/chart/LineTicketReport", component: LineTicketReport },
                {path: "/index/chart/ZhanChangLineReport", component: ZhanChangLineReport },
                {path: "/index/chart/StationCheckReport", component: StationCheckReport },
                {path: "/index/chart/StationTicketReport", component: StationTicketReport },
            ]},
        // 分销管理模块
        {
          path: "/index/saleManage", component: SaleManage, children: [
          {path: "/index/saleManage", component: Fenxiaoimpower},
          {path: "/index/saleManage/fenxiaoimpower", component: Fenxiaoimpower},
          {path: "/index/saleManage/jigoumanagement", component: Jigoumanagement},
            ]},
        // 车队管理模块
        {path:"/index/carManage",component:CarManage,children:[
          {path:"/index/carManage",component:VehicleSchedul},
          {path:"/index/carManage/vehicleSchedul",component:VehicleSchedul},
          {path:"/index/carManage/driverSchedul",component:DriverSchedul},
      ]},
        // 综合管理模块
        {path:"/index/allManage",component:AllManage,children:[
          {path:"/index/allManage/",component:OrgManage},
          {path:"/index/allManage/orgManage",component:OrgManage},
          {path:"/index/allManage/salesManage",component:SalesManage},
          {path:"/index/allManage/userManage",component:UserManage},
          {path:"/index/allManage/userGroupManage",component:UserGroupManage},
          {path:"/index/allManage/charaterManage",component:CharterManage},
          {path:"/index/allManage/resourManage",component:ResourManage},
          {path:"/index/allManage/osManage",component:OsManage},
          {path:"/index/allManage/printManage",component:PrintManage},
          {path:"/index/allManage/cusDate",component:CusDate},
          {path:"/index/allManage/osWork",component:OsWork},
          {path:"/index/allManage/dataSync",component:DataSync},
          {path:"/index/allManage/operLog",component:OperLog},
        ]},
      ]
    },
  ]
})
